﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using FlyCode.DBUtility;
public partial class _Default : System.Web.UI.Page 
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
         
            com.BLL.laibendi.T_Promotion bll_pro = new com.BLL.laibendi.T_Promotion();
            DataSet ds2 = bll_pro.GetPromotionSellerList("");

            foreach (DataRow dr in ds2.Tables[0].Rows)
            {
                if (dr["PromotionContent"].ToString().Length > 100)
                {
                    dr["PromotionContent"] = dr["PromotionContent"].ToString().Substring(0, 100);
                }
            }

            this.Repeater2.DataSource = ds2;
            this.Repeater2.DataBind();

        }
    }
 
   
}
